﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DVK.SP2007
{
    /// <summary>
    /// LoggerEvents enum contains all error message keywords and integer values that are loged.
    /// </summary>
    public enum LoggerEvents : int
    {
        /// <summary>
        /// used with unhandled exception message.
        /// </summary>
        UnhandledExceptionEncountered,
        /// <summary>
        /// used when document sending fails.
        /// </summary>
        SendDocumentFailed,
        /// <summary>
        /// used when document receving fails.
        /// </summary>
        ReceiveDocumentFailed,
        /// <summary>
        /// used when document status updating fails.
        /// </summary>
        UpdateDocumentStatusFailed,
        /// <summary>
        /// used when organisation data synchronization fails.
        /// </summary>
        SynchronizingOrganizationsFailed,
        /// <summary>
        /// used when archiving messages fails.
        /// </summary>
        ArchivingMessageFailed,
        /// <summary>
        /// used when connection string is missing from settings list.
        /// </summary>
        ConnectionStringIsNotConfigured,
        /// <summary>
        /// used when organisation could not be added to the organisations list.
        /// </summary>
        CouldNotAddOrganisationToSPList,

        /// <summary>
        /// used when the coping of resx from resources to app_globalresources fails in the GlobalResourcesManager.
        /// </summary>
        FailedToCopyResourcesToWebApp,

        /// <summary>
        /// Is used when the feature contains invalid parent object (e.g. should be SPSite, but is SPWeb)
        /// </summary>
        InvalidFeatureParent,

        /// <summary>
        /// used when DVK exception is thrown. 
        /// </summary>
        DvkExceptionOccured,
        /// <summary>
        /// Used in TimerJobsFeatureReceiver e.g. when feature scope is not Web or Site.
        /// </summary>
        FailedToCreateTimerJobs

    }
}
